package net.zjitc.service.Admin.impl;

import net.zjitc.damain.Admin.Admin;
import net.zjitc.dao.Admin.AdminDao;
import net.zjitc.service.Admin.AdminService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/3/6.
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminDao adminDao;
    @Override
    public Admin findByAdminnamePassword(String username, String password) {
        return adminDao.findByAdminnamePassword(username,password);
    }
}
